package com.xiaoyuer.weixin.controller;

import com.xiaoyuer.weixin.service.IWeChatService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@AllArgsConstructor
@RequestMapping("weixin")
public class WeChatController {

    @Autowired
   private IWeChatService iWeChatService;

    @GetMapping("/push")
    public void push(){
        iWeChatService.push();
    }
}
